﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.Notices
{
    /// <summary>
    /// 开票物料表
    /// </summary>
    [SugarTable("Billingmaterial")]
    public class Billingmaterial : BaseEntity
    {
        /// <summary>
        /// 开票物料表主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int BillingmaterialId { get; set; }
        /// <summary>
        /// 销售订单号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string SaleordersNumber { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Documentencoding { get; set; }
        /// <summary>
        /// 物料编码(外键 与物料表关联)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string ItemBianma { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string MaterialName { get; set; }
        /// <summary>
        /// 型号规格
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Specifications { get; set; }
        /// <summary>
        /// 主计量
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Measurenum { get; set; }
        /// <summary>
        /// 开票名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string BillingName { get; set; }
        /// <summary>
        /// 开票数量
        /// </summary>
        public int BillingNumber { get; set; }
        /// <summary>
        /// 开票单价
        /// </summary>
        public decimal BillingPrice { get; set; }
        /// <summary>
        /// 开票金额
        /// </summary>
        public decimal BillingSum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Remark { get; set; }
    }
}